package com.lmx.repoDomain.repository;

import io.katharsis.repository.annotations.JsonApiResourceRepository;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.lmx.persistence.service.CustomerLeaveService;
import com.lmx.repoDomain.tmodel.CustomerLeave;

/**
 * 老人离职
 *
 * @author ytche
 * @date 2017年6月20日
 *
 */
@Component
@JsonApiResourceRepository(value = CustomerLeave.class)
public class CustomerLeaveRepository extends BaseRepository<CustomerLeave> {
	@PostConstruct
	public void init() {
		dslJpaService.setEntityClass(CustomerLeave.class);
	}

	@Autowired
	CustomerLeaveService service;

	@SuppressWarnings("unchecked")
	@Override
	public CustomerLeave save(CustomerLeave entity) {
		return this.service.save(entity);
	}
}
